package com.travel.lib.base;

import android.app.Application;

import com.travel.lib.base.di.component.Appcomponent;

/**
 * Created by spc on 2017/8/10.
 */

public class BaseApplication extends Application {

    protected static BaseApplication mInst;
    protected Appcomponent mAppcomponent;

    public static BaseApplication getInst() {
        return mInst;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        mInst = this;
        init();
    }

    private void init() {
        initDagger();
    }

    protected void initDagger() {
    }


    public Appcomponent getAppComponent() {
        return mAppcomponent;
    }
}
